<?php
namespace app\api\controller;
use app\common\BaseController;
use app\api\model\RolePurview as RolePurviewModel;

class RolePurview extends BaseController{
    public function __construct(RolePurviewModel $roleModel){
        parent::__construct();
        $this->model = $roleModel;
    }
    public function index(){
        $params = $this->request->param();
        $data = $this->model->select();
        return $data;
    }    
}
